package com.firstgroup.dms.controller;

import com.firstgroup.dms.pojo.RuKuDan;
import com.firstgroup.dms.pojo.ChuKuDan;
import com.firstgroup.dms.service.PrintManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * 打印管理控制器
 * 负责处理入库单和出库单的打印相关请求
 */
@RestController
@RequestMapping("/print")
public class PrintManageController {

    @Autowired
    private PrintManageService printManageService;

    /**
     * 查询入库单信息
     * 
     * @return 入库单数据
     */
    @GetMapping("/stockIn")
    public List<RuKuDan> getStockIn() {
        return printManageService.queryStockIn();
    }

    /**
     * 查询出库单信息
     * 
     * @return 出库单数据
     */
    @GetMapping("/stockOut")
    public List<ChuKuDan> getStockOut() {
        return printManageService.queryStockOut();
    }
}
